import base from './base'

export default class News extends base {
    /**
   * 医学点播列表
   */
    static async getList(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/getlist`
        return this.get(url, options)
    }
    /**
    * 添加点播
    */
    static async add(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/add`
        return this.post(url, options)
    }
    /**
     * 编辑点播
     */
    static edit(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/edit`
        return this.post(url, options)
    }

    /**
     * 点播详情
     */
    static getDetails(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/getDetails`
        return this.get(url, options)
    }

    /**
    * 删除点播
    */
    static remove(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/del`
        return this.post(url, options)
    }

    /**
   * 上下架
   */
    static setStatus(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/setStatus`
        return this.post(url, options)
    }

    /**
       * 创建栏目分类
       */
    static addCate(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/addCate`
        return this.post(url, options)
    }

    /**
          * 编辑栏目
          */
    static editCate(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/editCate`
        return this.post(url, options)
    }

    /**
               * 删除栏目
               */
    static delCate(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/delCate`
        return this.post(url, options)
    }
    /**
         * 栏目列表
         */
    static getCateList(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/getCate`
        return this.get(url, options)
    }


    /**
             * 上传视频
             */
    static uploadVideo(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/upload`
        return this.post(url, options)
    }


    /**
            * 上传封面
            */
    static uploadCover(options) {
        const url = `${this.baseUrl}/adm/MedicalVod/upload_cover`
        return this.post(url, options)
    }
}
